package com.baidumap.administrator.happystudy.model;

import com.ab.util.AbJsonUtil;

import java.util.List;

/**
 * 描述：
 * 作者：xiaoxing on 17/4/12 22:03
 * 邮箱：2235445233@qq.com
 */
public class QuizList {


    /**
     * code : 200
     * msg : success
     * data : [{"id":"26","subject_id":"2","uid":"8","title":"问题1111","content":"很难啊222","images":["/Uploads/quiz/2017-05-01/5906e5219242d.png"],"status":"0","student_school":"","student_class":"","student_name":"","answer_content":"","answer_images":"","answered_by":"0","pay":"1","created_at":"1493624097","answer_at":"0","subject_name":"物理","school":null,"section":null,"grade":null,"nick_name":null,"quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-05-01/5906e5219242d.png"},{"id":"25","subject_id":"1","uid":"11","title":"问题1","content":"内容呀","images":["/Uploads/quiz/2017-04-29/59045b94897db.png"],"status":"0","student_school":"","student_class":"","student_name":"","answer_content":"","answer_images":"","answered_by":"0","pay":"1","created_at":"1493457812","answer_at":"0","subject_name":"语文","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-04-29/59045b94897db.png"},{"id":"24","subject_id":"4","uid":"11","title":"第三题","content":"内容错误","images":["/Uploads/quiz/2017-04-23/58fc0808512a1.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"這個題目的解題思路是這個，看圖片","answer_images":"a:3:{i:0;s:42:\"/Uploads/quiz/2017-04-25/58ff720c0abe7.gif\";i:1;s:42:\"/Uploads/quiz/2017-04-25/58ff720c0badb.jpg\";i:2;s:42:\"/Uploads/quiz/2017-04-25/58ff720c0c75d.jpg\";}","answered_by":"14","pay":"1","created_at":"1492912136","answer_at":"1493135884","subject_name":"英语","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-04-23/58fc0808512a1.png"},{"id":"22","subject_id":"4","uid":"11","title":"很难","content":"真的很难","images":["/Uploads/quiz/2017-04-23/58fc059962e41.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"红薯来一个","answer_images":"a:1:{i:0;s:42:\"/Uploads/quiz/2017-04-28/5903424c50bb2.jpg\";}","answered_by":"22","pay":"1","created_at":"1492911513","answer_at":"1493385804","subject_name":"英语","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-04-23/58fc059962e41.png"},{"id":"21","subject_id":"3","uid":"11","title":"数学题","content":"不会呀怎么办","images":["/Uploads/quiz/2017-04-23/58fc04a1a3779.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"吃几个红薯就知道做了","answer_images":"a:1:{i:0;s:42:\"/Uploads/quiz/2017-04-28/590344224ae90.jpg\";}","answered_by":"22","pay":"1","created_at":"1492911265","answer_at":"1493386274","subject_name":"数学","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-04-23/58fc04a1a3779.png"},{"id":"20","subject_id":"1","uid":"11","title":"标题","content":"没事","images":["/Uploads/quiz/2017-04-22/58fb6fae6e4db.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"为什么每次刷新我回答过的都不见了？？","answer_images":"a:3:{i:0;s:42:\"/Uploads/quiz/2017-04-28/5903467f476f8.jpg\";i:1;s:42:\"/Uploads/quiz/2017-04-28/5903467f486a1.jpg\";i:2;s:42:\"/Uploads/quiz/2017-04-28/5903467f49263.jpg\";}","answered_by":"22","pay":"1","created_at":"1492873134","answer_at":"1493386879","subject_name":"语文","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/quiz/2017-04-22/58fb6fae6e4db.png"},{"id":"19","subject_id":"2","uid":"11","title":"这是数理 ，也是我最弱的， 请老师帮忙。","content":"我真不会 ，想了一晚了。","images":["/Uploads/2017-04-18/58f5ddfc820c6.png","/Uploads/2017-04-18/58f5ddfc82689.png","/Uploads/2017-04-18/58f5ddfc82df3.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"这个什么情况，还有代码吗","answer_images":"a:3:{i:0;s:42:\"/Uploads/quiz/2017-04-28/590348a77fbb9.jpg\";i:1;s:42:\"/Uploads/quiz/2017-04-28/590348a780f4f.jpg\";i:2;s:42:\"/Uploads/quiz/2017-04-28/590348a781b0e.jpg\";}","answered_by":"22","pay":"1","created_at":"1492508156","answer_at":"1493387431","subject_name":"物理","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/2017-04-18/58f5ddfc820c6.png"},{"id":"18","subject_id":"4","uid":"11","title":"这是舍题目呀? 我怎不会呢?","content":"老师， 请你看我发的图片， 告诉我怎做。","images":["/Uploads/2017-04-18/58f5ddc91694c.png","/Uploads/2017-04-18/58f5ddc9180a9.png","/Uploads/2017-04-18/58f5ddc919817.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"这题最主要的做法就是要，把相关的题目问答及老师想要的全部都写出来。","answer_images":"a:2:{i:0;s:42:\"/Uploads/quiz/2017-04-29/5903f0875c490.jpg\";i:1;s:43:\"/Uploads/quiz/2017-04-29/5903f0876516c.JPEG\";}","answered_by":"14","pay":"1","created_at":"1492508105","answer_at":"1493430407","subject_name":"英语","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/2017-04-18/58f5ddc91694c.png"},{"id":"17","subject_id":"3","uid":"11","title":"昨天我想了一晚， 还是不会？","content":"这一题目对我来说 还是有难度 请老师帮忙","images":["/Uploads/2017-04-18/58f5dd4a9f232.png","/Uploads/2017-04-18/58f5dd4aa09d1.png","/Uploads/2017-04-18/58f5dd4aa2110.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"多吃几个红薯，游戏增强思维","answer_images":"a:3:{i:0;s:42:\"/Uploads/quiz/2017-04-28/59035f02d29a3.jpg\";i:1;s:42:\"/Uploads/quiz/2017-04-28/59035f02d5d34.jpg\";i:2;s:42:\"/Uploads/quiz/2017-04-28/59035f02d7035.jpg\";}","answered_by":"22","pay":"1","created_at":"1492507978","answer_at":"1493393154","subject_name":"数学","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/2017-04-18/58f5dd4a9f232.png"},{"id":"16","subject_id":"2","uid":"11","title":"真的遇到问题了 ，需要解题！","content":"请老师为我解题一下。","images":["/Uploads/2017-04-18/58f5dd0bad8c2.png","/Uploads/2017-04-18/58f5dd0badfcc.png","/Uploads/2017-04-18/58f5dd0bae5ec.png"],"status":"0","student_school":"","student_class":"","student_name":"","answer_content":"","answer_images":"","answered_by":"0","pay":"1","created_at":"1492507915","answer_at":"0","subject_name":"物理","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/2017-04-18/58f5dd0bad8c2.png"},{"id":"15","subject_id":"1","uid":"11","title":"这一题目我不会写 ，请老师解题！","content":"数学怎算呢？ 老师， 请你帮个一个忙。","images":["/Uploads/2017-04-18/58f5dcc0a190b.jpg","/Uploads/2017-04-18/58f5dcc0a268a.png","/Uploads/2017-04-18/58f5dcc0a2cf8.png"],"status":"1","student_school":"","student_class":"","student_name":"","answer_content":"还不错","answer_images":"a:1:{i:0;s:42:\"/Uploads/quiz/2017-04-28/5903344bae5c4.jpg\";}","answered_by":"22","pay":"1","created_at":"1492507840","answer_at":"1493382219","subject_name":"语文","school":"山东大学","section":"111","grade":"二年级","nick_name":"徐星星","quiz_pic":"http://yigoo.gxhao.cc/Uploads/2017-04-18/58f5dcc0a190b.jpg"}]
     */

    private String code;
    private String msg;
    private List<DataBean> data;

    /**
     * 用json构造自己
     *
     * @param json
     */
    public QuizList(String json) {
        QuizList result = AbJsonUtil.fromJson(json, this.getClass());
        this.code = result.getCode();
        this.msg = result.getMsg();
        this.data = result.getData();

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 26
         * subject_id : 2
         * uid : 8
         * title : 问题1111
         * content : 很难啊222
         * images : ["/Uploads/quiz/2017-05-01/5906e5219242d.png"]
         * status : 0
         * student_school :
         * student_class :
         * student_name :
         * answer_content :
         * answer_images :
         * answered_by : 0
         * pay : 1
         * created_at : 1493624097
         * answer_at : 0
         * subject_name : 物理
         * school : null
         * section : null
         * grade : null
         * nick_name : null
         * quiz_pic : http://yigoo.gxhao.cc/Uploads/quiz/2017-05-01/5906e5219242d.png
         */

        private String id;
        private String subject_id;
        private String uid;
        private String title;
        private String content;
        private String status;
        private String student_school;
        private String student_class;
        private String student_name;
        private String answer_content;
        private String answer_images;
        private String answered_by;
        private String pay;
        private String created_at;
        private String answer_at;
        private String subject_name;
        private Object school;
        private Object section;
        private Object grade;
        private Object nick_name;
        private String quiz_pic;
        private List<String> images;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getSubject_id() {
            return subject_id;
        }

        public void setSubject_id(String subject_id) {
            this.subject_id = subject_id;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getStudent_school() {
            return student_school;
        }

        public void setStudent_school(String student_school) {
            this.student_school = student_school;
        }

        public String getStudent_class() {
            return student_class;
        }

        public void setStudent_class(String student_class) {
            this.student_class = student_class;
        }

        public String getStudent_name() {
            return student_name;
        }

        public void setStudent_name(String student_name) {
            this.student_name = student_name;
        }

        public String getAnswer_content() {
            return answer_content;
        }

        public void setAnswer_content(String answer_content) {
            this.answer_content = answer_content;
        }

        public String getAnswer_images() {
            return answer_images;
        }

        public void setAnswer_images(String answer_images) {
            this.answer_images = answer_images;
        }

        public String getAnswered_by() {
            return answered_by;
        }

        public void setAnswered_by(String answered_by) {
            this.answered_by = answered_by;
        }

        public String getPay() {
            return pay;
        }

        public void setPay(String pay) {
            this.pay = pay;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getAnswer_at() {
            return answer_at;
        }

        public void setAnswer_at(String answer_at) {
            this.answer_at = answer_at;
        }

        public String getSubject_name() {
            return subject_name;
        }

        public void setSubject_name(String subject_name) {
            this.subject_name = subject_name;
        }

        public Object getSchool() {
            return school;
        }

        public void setSchool(Object school) {
            this.school = school;
        }

        public Object getSection() {
            return section;
        }

        public void setSection(Object section) {
            this.section = section;
        }

        public Object getGrade() {
            return grade;
        }

        public void setGrade(Object grade) {
            this.grade = grade;
        }

        public Object getNick_name() {
            return nick_name;
        }

        public void setNick_name(Object nick_name) {
            this.nick_name = nick_name;
        }

        public String getQuiz_pic() {
            return quiz_pic;
        }

        public void setQuiz_pic(String quiz_pic) {
            this.quiz_pic = quiz_pic;
        }

        public List<String> getImages() {
            return images;
        }

        public void setImages(List<String> images) {
            this.images = images;
        }
    }
}
